package com.zhiyou100.service;

import com.zhiyou100.dao.ScoreDao;
import com.zhiyou100.entity.Score;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ScoreServiceImp  implements  ScoreService {
    @Autowired
    private ScoreDao scoreDao;
    @Override
    public List<Score> getAllFenYe(Integer seid, int startIndex, int pageSize) {
        return scoreDao.getAllFenYe(seid,startIndex,pageSize);
    }
    @Override
    public void addOne(Score o) {
        scoreDao.addOne(o);
    }
    @Override
    public void deleteOne(Integer id) {
        scoreDao.deleteOne(id);
    }
    @Override
    public void updateOne(Score o) {scoreDao.updateOne(o);}
    @Override
    public List<Score> getAll() {
        return scoreDao.getAll();
    }

    @Override
    public Score getOne(Integer id) {
        return scoreDao.getOne(id);
    }
}
